import React, { memo, Suspense } from 'react';
import { Provider } from 'react-redux';
import store from './store';
import { HashRouter } from 'react-router-dom';
import { renderRoutes } from 'react-router-config';
import routes from '@/router';
/* 渲染路由页面 */
export default memo(function App() {
  return (
    <Provider store={store}>
      <HashRouter>
        <Suspense fallback={<div>loading</div>}>
          {renderRoutes(routes)}
        </Suspense>
      </HashRouter>
    </Provider>
  );
});
